package com.arpa.ntocc.common.mapper;

import com.arpa.ntocc.common.domain.entity.PartyResource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * 主体资源关系mapper
 * @author liuxr
 * @date 2021/11/15 9:26
 */
public interface PartyResourceMapper extends BaseMapper<PartyResource> {

    /**
     * 删除资源关系
     * @author liuxr
     * @date 2021/11/15 10:07
     * @param partyCode 组织标识或用户标识
     */
    @Delete("delete from sys_party_resource where party_code = #{partyCode} and group_code = #{groupCode}")
    void removeByPartyCode(String partyCode,String groupCode);

}
